package com.example.job09redispubsub;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;

    @RequestMapping("order")
    public String order() {
        orderService.save(System.currentTimeMillis());
        return "success";
    }
}
